package ooday01_homework;

public class Car {
    String brand;
    String color;
    double price;

    Car() {

    }

    Car(String brand, String color, double price) {
        this.brand = brand;
        this.color = color;
        this.price = price;

    }

    void start() {
        System.out.println("价格为" + price + "，" + color + "色的" + brand + "启动了");
    }

    void run() {
        System.out.println("价格为" + price + "，" + color + "色的" + brand + "跑了");
    }

    void stop() {
        System.out.println("价格为" + price + "，" + color + "色的" + brand + "停了");
    }

}
